package com.hr.dao;

import java.util.List;

import com.hr.model.DepartmentModel;
/**
 * 登录DAO
 * @author fazhen.zheng
 *
 */
public interface DepartmentDao {
	/**
	 * 查询所有记录
	 * @return
	 */
	public List<DepartmentModel> queryAll();
	/**
	 * 按主键查询
	 * @param code
	 * @return
	 */
	public DepartmentModel queryByPrimaryKey(String code);
	/**
	 * 插入一条记录
	 * @param department
	 */
	public void insert(DepartmentModel department);
	/**
	 * 删除一条记录
	 * @param code
	 * @return
	 */
	public boolean delete(String code);
	
	/**
	 * 更新一条记录
	 * @param department
	 * @return
	 */
	public boolean update(DepartmentModel department);
}
